﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace FileEfCore.Migrations.ServerFileDb
{
    public partial class v13 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "DownloadServiceAddress",
                table: "FileStorageRecord");

            migrationBuilder.DropColumn(
                name: "DownloadServicePort",
                table: "FileStorageRecord");

            migrationBuilder.DropColumn(
                name: "StorageID",
                table: "FileStorageRecord");

            migrationBuilder.DropColumn(
                name: "StorageServiceAddress",
                table: "FileStorageRecord");

            migrationBuilder.DropColumn(
                name: "StorageServicePort",
                table: "FileStorageRecord");

            migrationBuilder.DropColumn(
                name: "Storageprotocol",
                table: "FileStorageRecord");

            migrationBuilder.DropColumn(
                name: "UploadServiceAddress",
                table: "FileStorageRecord");

            migrationBuilder.DropColumn(
                name: "UploadServicePort",
                table: "FileStorageRecord");
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<string>(
                name: "DownloadServiceAddress",
                table: "FileStorageRecord",
                type: "TEXT",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "DownloadServicePort",
                table: "FileStorageRecord",
                type: "INTEGER",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "StorageID",
                table: "FileStorageRecord",
                type: "TEXT",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "StorageServiceAddress",
                table: "FileStorageRecord",
                type: "TEXT",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "StorageServicePort",
                table: "FileStorageRecord",
                type: "INTEGER",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "Storageprotocol",
                table: "FileStorageRecord",
                type: "TEXT",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "UploadServiceAddress",
                table: "FileStorageRecord",
                type: "TEXT",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "UploadServicePort",
                table: "FileStorageRecord",
                type: "INTEGER",
                nullable: true);
        }
    }
}
